package com.starsoft.smdc.crawler.ths;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.Header;
import org.apache.http.message.BasicHeader;

import com.starsoft.smdc.crawler.common.CrawlerService;

public class ThsService extends CrawlerService{
	
	private final String THS="ths";
	protected static long lastRefresh;
	
	protected String convertSecId(String secId, boolean isToLocal){
		throw new RuntimeException("not support");
	}

	@Override
	protected String getTargetSystem() {
		return THS;
	}

	protected Header[] defaultHeaders() {
		List<Header> headerList = new ArrayList<>();
		headerList.add(new BasicHeader("User-Agent",
				"Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/61.0"));
		headerList.add(new BasicHeader("Host", "basic.10jqka.com.cn"));
		headerList.add(new BasicHeader("Pragma", "no-cache"));
		headerList.add(new BasicHeader("Connection", "keep-alive"));
		headerList.add(new BasicHeader("Accept", "*/*"));
		headerList.add(new BasicHeader("Accept-Encoding", "gzip, deflate"));
		headerList.add(new BasicHeader("Cache-Conrol", "no-cache"));
		headerList.add(new BasicHeader("Accept-Language", "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"));
		return headerList.toArray(new Header[0]);
	}

}
